#ifndef TRIANGLE_H
#define TRIANGLE_H
/**
 * @file Triangle.hpp
 * 
 * This header file contains the prototypes of the functions needed to manipulate a Triangle 
 * object.
 */
#include "Canvas.hpp"
#include "Shape.hpp"
/**
 * This class specifies the manner in which the Triangle object can be implemented.
 */
class Triangle : public Shape
{
private:
	POINT a, b, c;

public:
	//Default constructor
	Triangle();
	//Constructor with the properties of a shape
	Triangle( int x, int y, int size, COLORREF color );
	//Destructor
	virtual ~Triangle();
	//Returns true if coordinance of a point is inside the Triangle
	virtual bool contains( int x, int y );
	//Draws a triangle inside the shape boundaries.
	virtual void draw( Canvas& canvas );
	//Sets the three points of a Triangle
	void setPoints();
};

#endif